<?php
	$get = false;
	foreach($_GET as $key => $val)
	{
		if (!$get)
		{
			echo "<h2>Ottenuto da GET</h2>";
			echo "<p>(ContentType = ".$_SERVER["CONTENT_TYPE"]."<br />";
			echo "(ContentLength = ".$_SERVER["CONTENT_LENGTH"]."</p>";
			$get = true;
		}
		echo "<p>&nbsp;&nbsp;<b>".$key."</b></p>";
		echo "<p><i>".$val."</i></p>";
	}


	$post = false;
	foreach($_POST as $key => $val)
	{
		var_dump($_POST);
		if (!$post)
		{
			echo "<h2>Ottenuto da POST</h2>";
			echo "<p>(ContentType = ".$_SERVER["CONTENT_TYPE"]."<br />";
			echo "(ContentLength = ".$_SERVER["CONTENT_LENGTH"]."</p>";
			$post = true;
		}
		echo "<p>&nbsp;&nbsp;<b>".$key."</b></p>";
		echo "<p><cite>".$val."</cite></p>";
	}

	if (!$post && !$get)
	{
		echo "non mi arriva una sega";
	}

	phpinfo();
?>